package com.yunnuo.com.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunnuo.com.core.PageReq;
import com.yunnuo.com.domain.entity.SysUser;
import com.yunnuo.com.mapper.SysUserMapper;
import com.yunnuo.com.service.SysUserService;
import org.springframework.stereotype.Service;

/**
 * User 服务实现
 *
 * @author yunnuo
 * @since 2022-04-09
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public IPage<SysUser> pageUsers(PageReq pageReq) {
        Page<SysUser> page = new Page<>(pageReq.getPageIndex(), pageReq.getPageSize());
        return this.page(page);
    }
}
